package org.prothliberger.reflect;

public class Personne {
	private String prenom;

	private String nom;

	private Sexe sexe;

	private boolean married;

	public Personne() {
	}
  	             	
	public Personne(String aPrenom, String aNom, Sexe aSexe, boolean aMarried) {
		prenom = aPrenom;
		nom = aNom;
		sexe = aSexe;
		married = aMarried;
	}

	public String getPrenom() {
		return prenom;
	}

	public void setPrenom(String aPrenom) {
		prenom = aPrenom;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String aNom) {
		nom = aNom;
	}

	public String getNomComplet() {
		return prenom + " " + nom;
	}

	public Sexe getSexe() {
		return sexe;
	}

	public void setSexe(Sexe aSexe) {
		sexe = aSexe;
	}

	public boolean isMarried() {
		return married;
	}

	public void setMarried(boolean aMarried) {
		married = aMarried;
	}

	public boolean isDivorced() {
		return !married;
	}

	public void setAbc(String aValue) {

	}

	
	@Override
	public String toString() {
		return sexe.getCivilite() + " " + prenom + " " + nom;
	}

}
